<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>匹配结果 - 稳定匹配可视化系统</title>
    <link rel="stylesheet" href="css/style.css">
    <link rel="stylesheet" href="css/results.css">
</head>
<body>
    <!-- 顶部导航栏 -->
    <header class="navbar">
        <div class="container">
            <h1 class="logo">稳定匹配可视化系统</h1>
            <nav class="nav-menu">
                <ul>
                    <li><a href="index.html">首页</a></li>
                    <li><a href="results.html" class="active">匹配结果</a></li>
                    <li><a href="process.html">匹配过程</a></li>
                    <li><a href="upload.html">数据上传</a></li>
                    <li><a href="execute.html">算法执行</a></li>
                </ul>
            </nav>
        </div>
    </header>

    <!-- 主要内容区域 -->
    <main class="main-content">
        <div class="container">
            <h2>匹配结果</h2>
            
            <!-- 总体统计面板 -->
            <section class="summary-panel">
                <h3>总体统计信息</h3>
                <div class="stats-grid">
                    <div class="stat-card">
                        <h4>总货物数</h4>
                        <p id="total-shipments">0</p>
                    </div>
                    <div class="stat-card">
                        <h4>总容量</h4>
                        <p id="total-capacity">0</p>
                    </div>
                    <div class="stat-card">
                        <h4>匹配率</h4>
                        <p id="matching-rate">0%</p>
                    </div>
                    <div class="stat-card">
                        <h4>稳定性</h4>
                        <p id="stability">未知</p>
                    </div>
                    <div class="stat-card">
                        <h4>执行时间</h4>
                        <p id="execution-time">0秒</p>
                    </div>
                </div>
            </section>

            <!-- 货物分配地图 -->
            <section class="allocation-map">
                <h3>货物分配地图</h3>
                <div id="map-container">
                </div>
            </section>

            <!-- 货物分配详情表 -->
            <section class="allocation-table">
                <h3>货物分配详情</h3>
                <table id="shipments-table">
                    <thead>
                        <tr>
                            <th>货物ID</th>
                            <th>起点</th>
                            <th>终点</th>
                            <th>分配路线</th>
                            <th>成本</th>
                            <th>偏好等级</th>
                            <th>状态</th>
                        </tr>
                    </thead>
                    <tbody>
                        <!-- 数据将通过JavaScript动态填充 -->
                    </tbody>
                </table>
            </section>

            <!-- 路线利用率图表 -->
            <section class="route-utilization">
                <h3>路线利用率</h3>
                <div id="utilization-chart">
                </div>
            </section>
        </div>
    </main>

    <!-- 底部信息栏 -->
    <footer class="footer">
        <div class="container">
            <p>&copy; 2025 稳定匹配可视化系统. All rights reserved.</p>
        </div>
    </footer>

    <script src="js/main.js"></script>
    <script src="js/charts.js"></script>
    <script src="js/results.js"></script>
</body>
</html>